
<!-- BEGIN:main -->



<script>


    function submitForm(ac)
    {

    if(ac=='cancel'){
             var form = document.phpForm;
                form.hdAction.value = ac;
                form.submit();
        }
        else{

            var noidung = $('#txtnoidung');

            var arrayInput = new Array(noidung);

            var hasError = validateEmptyValue(arrayInput);

            if (hasError) {
                alert('Vui lòng điền đầy đủ thông tin');
            } else {
                var form = document.phpForm;
                form.hdAction.value = ac;
                form.submit();

            }

        }
    }


</script>




<div id="toolbar-box">
    <div class="d_divide5"></div>
    <div class="toolbar" id="toolbar">
        <table class="toolbar">
            <tbody>
                <tr>
                    <td class="button" id="toolbar-save">
                        <a href="javascript:void()" onclick="submitForm('editAndExit')" class="toolbar">
                            <span class="icon-32-save" title="Lưu và thoát">
                            </span>
                            Lưu và thoát
                        </a>
                    </td>

                    <td class="button" id="toolbar-apply">
                        <a href="javascript:void()" onclick="submitForm('edit')" class="toolbar">
                            <span class="icon-32-apply" title="Lưu">
                            </span>
                            Lưu
                        </a>
                    </td>

                    <td class="button" id="toolbar-cancel">
                        <a href="javascript:void()" onclick="submitForm('cancel')" class="toolbar">
                            <span class="icon-32-cancel" title="Hủy">
                            </span>
                            Hủy
                        </a>
                    </td>


                </tr>

            </tbody>
        </table>
    </div>

    <div class="header icon_48_cauhoi_add">
        Câu hỏi: <small><small>[ Chỉnh sửa ]</small></small><br>
    </div>
    <div class="d_divide5"></div>
</div>

<div class="d_divide10"></div>
<div class="d_clear"></div>

<div id="element-box">
    <form method="post" name="phpForm">
        <input type="hidden" id="hdAction" name="hdAction" value="" />
        <fieldset class="adminform">

            <legend>Thông tin câu hỏi </legend>

            <div class="d_divide2"></div>

            <!--title-->
            <div>
                <label for="txtnoidung" class="d_label">Nội dung câu hỏi: <b style="color: red;">*</b></label>
                <textarea style="width:400px;height:200px" cols="30" rows="10" name="txtnoidung" id="txtnoidung" >{noidung}</textarea>
            </div>

                <input type="hidden" id="hdID" name="hdID" value="{ID}" />
        </fieldset>

    </form>


</div>

<!-- END:main -->